﻿using SIG.Core;
using SIG.Resources.Admin;

namespace SIG.Model.Blogs
{
    public class Post : AuditableEntity<int>
    {
        public Post()
        {
            EntityName = EntityNames.Post;         
        }
      
     
        public string Title { get; set; }   
        public string Body { get; set; }    
        public string Summary { get; set; }    
        public string Keywords { get; set; }
        public int ViewCount { get; set; }     
        public int CategoryId { get; set; }    
        public string Thumbnail { get; set; }   
        public bool Recommend { get; set; }      
        public bool Active { get; set; } 

        public virtual PostCategory PostCategory { get; set; }
        public string CategoryTitle
        {
            get
            {
                if (this.PostCategory != null)
                {
                    return this.PostCategory.Title;
                }
                return string.Empty;
            }
        }


    }
}
